/**
 * Copyright (C), 2012-2018, 联奕科技有限公司
 * FileName: QQServiceProvider
 * Author:   石贵武
 * Date:     2018\3\13 0013 19:51
 * Description:
 * History:
 * <author>          <time>          <version>          <desc>
 * 作者姓名           修改时间           版本号              描述
 */
package com.zhoudongxiu.security.core.social.qq.connect;

import com.zhoudongxiu.security.core.social.qq.api.QQ;
import org.springframework.social.oauth2.AbstractOAuth2ServiceProvider;
import org.springframework.social.oauth2.OAuth2Template;

/**
 * 〈一句话功能简述〉<br>
 * 〈〉
 *
 * @author 石贵武
 * @create 2018\3\13 0013
 * @since 1.0.0
 */
public class QQServiceProvider extends AbstractOAuth2ServiceProvider<QQ> {

    private String appId;

    private final static String URL_AUTHORIZE = "https://graph.qq.com/oauth2.0/authorize";

    private final static String URL_ACCESS_TOKEN = "https://graph.qq.com/oauth2.0/token";

    public QQServiceProvider(String appId, String appSecret) {
        super(new OAuth2Template(appId,appSecret,URL_AUTHORIZE,URL_ACCESS_TOKEN));
        this.appId = appId;//
    }


    @Override
    public QQ getApi(String access_Token) {
        return null;
    }
}